#include <Windows.h>
#include "Game\Game.h"

// Main
int main (int argc, char* argv[]) {
	// Initialize
	cGame::Get().Init();
	unsigned long luiLastTime = timeGetTime();
	while (!cGame::Get().HasFinished()) {
		unsigned long luiActualTime = timeGetTime();
		float lfTimeStep = ((float) (luiActualTime - luiLastTime) / 1000.0f);
		luiLastTime = luiActualTime;
		// Update
		cGame::Get().Update(lfTimeStep);
		// Render
		cGame::Get().Render();
	}
	// Deinitialize
	cGame::Get().DeInit();

	system("pause");
}
